package com.xszx.entity.dto.MoveWarehouse;

import com.xszx.common.PageRequest;

import java.io.Serializable;
import java.util.Objects;

public class MoveWarehouseQueryRequest extends PageRequest implements Serializable {

    /**
     * 仓库编号
     */
    private String warehouseCode;

    /**
     * 区域编号
     */
    private String regionCode;

    /**
     * 货物批次
     */
    private String gbatch;

    public String getWarehouseCode() {
        return warehouseCode;
    }

    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }

    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public String getGbatch() {
        return gbatch;
    }

    public void setGbatch(String gbatch) {
        this.gbatch = gbatch;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        MoveWarehouseQueryRequest that = (MoveWarehouseQueryRequest) o;
        return Objects.equals(warehouseCode, that.warehouseCode) && Objects.equals(regionCode, that.regionCode) && Objects.equals(gbatch, that.gbatch);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), warehouseCode, regionCode, gbatch);
    }
}
